package com.stars.system.reim.domain;

import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 报销记录（个人）对象 stars_reim_record
 * 
 * @author shuaibizhe
 * @date 2022-11-14
 */
public class ReimDailyRecordVO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 详细记录 */
    private List<ReimDailyRecord> reimDailyRecords;

    /** 日期 */
    private String date;

    /** 总金额 */
    private BigDecimal total;

    /** 已报销金额 */
    private BigDecimal completed;

    /** 未报销金额 */
    private BigDecimal unComplete;

    private int count;

    public List<ReimDailyRecord> getReimDailyRecords() {
        return reimDailyRecords;
    }

    public String getDate() {
        return date;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public BigDecimal getCompleted() {
        return completed;
    }

    public BigDecimal getUnComplete() {
        return unComplete;
    }

    public int getCount() {
        return count;
    }

    public ReimDailyRecordVO() {
        this.reimDailyRecords = new ArrayList<>();
        this.date = "";
        this.total = new BigDecimal(0);
        this.completed = new BigDecimal(0);
        this.unComplete = new BigDecimal(0);
    }

    public void addRecord(ReimDailyRecord record) {
        this.reimDailyRecords.add(record);
    }

    public void buildReimRecordVO(String month, ReimDailyRecordVO recordVO) {
        this.date = month;
        this.total = recordVO.getTotal();
        this.completed = recordVO.getCompleted();
        this.unComplete = recordVO.getUnComplete();
        this.reimDailyRecords = new ArrayList<>();
    }
}
